﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SQLServerHealthCheck.Model;
using System.Collections.ObjectModel;

namespace SQLServerOptimizer.PL.WPF
{
    public class IssueCategory
    {
        public IssueCategory()
        {
            Issues = new ObservableCollection<Issue>();
           Recommendations = new ObservableCollection<Recommendation>();
        }
        public String Name { get; set; }
        public ObservableCollection<Issue> Issues { get; set; }
        public ObservableCollection<Recommendation> Recommendations { get; set; }

        public override string ToString()
        {
            return this.Name + " (" + Issues.Count.ToString() + ")";
        }
        
    
    }
}
